package com.hspedu.transformation;

import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;

/**
 * @Author Stringzhua
 * @Date 2024/3/17 18:16
 * description:演示PrintWriter使用方法
 */
public class PrintWriter_ {
    public static void main(String[] args) throws IOException {
//        PrintWriter printWriter = new PrintWriter(System.out);
        PrintWriter printWriter = new PrintWriter(new FileWriter("e:\\qiyeke\\filecontroller\\f2.txt"));
        printWriter.print("北京你好");
        printWriter.close();
    }
}
